package com.lyx.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lyx.common.to.UserTo;
import com.lyx.user.dto.WxLoginDto;
import com.lyx.user.entity.User;
import com.lyx.user.vo.UserVo;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author 14667
 * @date 2022/7/18 20:57
 */
@Service
public interface UserService extends IService<User> {
    WxLoginDto login(String phone, String code);

    User getUserByOpenId(String openid);

    void logout(HttpServletRequest id);

    WxLoginDto wxlogin(String code);

    WxLoginDto add(UserVo userVo);

    User getUserInfo(HttpServletRequest request);

    List<UserTo> getUsers(List<Integer> ids);

    User getUserById(Integer userId);

}
